﻿using System;

namespace homework5
{
    class Program
    {
        static void Main(string[] args)
        {
            HomeWork05.OrderService myOrder = new HomeWork05.OrderService();
            myOrder.CreatOrder(20220320, "武汉", "小明");
            myOrder.addOrder(20220320, "计算机组成与设计", 20, 1);
            myOrder.addOrder(20220320, "高级语言程序设计", 100, 1);
            myOrder.addOrder(20220320, "数据库", 30, 2);
            myOrder.CreatOrder(20220321, "武汉大学", "丁玲");
            myOrder.addOrder(20220321, "计算机网络", 55, 1);
            myOrder.OutOrder();
            myOrder.FindOrder();
            myOrder.CreatOrder(20220322, "华中科技大学", "小绿");
            myOrder.addOrder(20220322, "ipad", 5000, 1);
            Console.WriteLine("排序前:");
            myOrder.OutOrder();
            myOrder.myList.Sort();
            Console.WriteLine("排序后:");
            myOrder.OutOrder();
            Console.ReadKey();
        }
    }
}
